影搜[搜].js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. var rule = {
  2. title: '影搜',
  3. host: 'https://yingso.fun',
  4. searchUrl: 'https://ys.api.yingso.fun/v3/ali/search',
  5. searchable: 2,
  6. quickSearch: 0,
  7. headers: {
  8. 'User-Agent': 'PC_UA',
  9. },
  10. timeout: 5000,
  11. play_parse: true,
  12. lazy: $js.toString(() => {
  13. let url = input.startsWith('push://') ? input : 'push://' + input;
  14. input = {parse: 0, url: url};
  15. }),
  16. 一级: '',
  17. 二级: '*',
  18. 搜索: $js.toString(() => {
  19. let d = [];
  20. //log(KEY);
  21. let html = post(MY_URL, {
  22. body: {
  23. "pageNum": 1,
  24. "pageSize": 30,
  25. "title": KEY,
  26. "root": 0,
  27. "cat": "all"
  28. }
  29. });
  30. //log(html);
  31. var list = JSON.parse(html).data;
  32. //log(list);
  33. list.map(it => {
  34. let url = it.key
  35. if (url.length === 11) {
  36. let _img = 'https://3848.kstore.space/TVBox/tp/%E9%98%BF%E9%87%8C%E4%BA%91%E7%9B%98.png';
  37. d.push({
  38. title: it.title,
  39. img: _img,
  40. url: "https://www.aliyundrive.com/s/" + url + `@@${it.title}@@${_img}`,
  41. });
  42. }
  43. });
  44. setResult(d);
  45. }),
  46. }